define(["servers"], function (servers) {
    return  Backbone.Model.extend({
        defaults: function () {
            return {
                defSelectOption: {id: "-99", text: "全部"},
                defUploadImgUrl:servers.base.uploadImg
            };
        },
        getAdFormatBase:function (cb) {
            servers.base.adFormat(function(list){
                if(cb){cb(list)}
            });
        },
        getAdFormat:function () {
            var self=this;
            self.getAdFormatBase(function (list) {
                list=$.ExtCommon.convertListByPara(list);
                self.set({dataListAdFormat:servers.getSendSuccess(list)});
                self.trigger('bind:AdFormat');
            });
        },
        getOs:function () {
            var self=this;
            servers.base.os(function(res){
                res.data=res.success ? $.ExtCommon.convertListByPara(res.data) : [];
                self.set({dataListOs:res});
                self.trigger('bind:Os');
            });
        },
        getRatio:function () {
            var self=this;
            servers.base.ratio(function(res){
                res.data=res.success ? $.ExtCommon.convertListByPara(res.data) : [];
                self.set({dataListRatio:res});
                self.trigger('bind:Ratio');
            });
        },
        getImageType:function () {
            var self=this;
            servers.base.imageType(function(res){
                res.data=res.success ? $.ExtCommon.convertListByPara(res.data) : [];
                self.set({dataListImageType:res});
                self.trigger('bind:ImageType');
            });
        }
    });
});